package com.situ.mall.base.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * ClassName: ShopVO
 * Package: com.situ.mall.order.vo
 * Description:
 *
 * @Author Darling_达
 * @Create 2023-04-10 11:33
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopVO {

    private int code;
    private String msg;
    private List<?> data;

    public void setData(List<?> data) {
        this.data = data;
    }

    public static ShopVO data(List<?> list){
        ShopVO vo = new ShopVO();
        vo.setData(list);
        return vo;
    }

}
